import request from '@/utils/request'

export function listForSaleCollect(data) {
  return request({
    url: '/system/message/list',
    method: 'post',
    data: data
  })
}
export function remove(data) {
  return request({
    url: '/system/message/delete',
    method: 'post',
    data: { deleteIds: data }
  })
}
export function deleteV2(data) {
  return request({
    url: '/system/message/deleteV2',
    method: 'post',
    data: { deleteIds: data }
  })
}
export function getMsgNum(data) {
  return request({
    url: '/system/message/getMsgNumV2',
    method: 'post',
    data: { userId: data }
  })
}
export function read(data) {
  return request({
    url: '/system/message/messageRead',
    method: 'post',
    data: data
  })
}
export function afficheRead(data) {
  return request({
    url: '/system/message/messageEmpty',
    method: 'post',
    data: data
  })
}
export function messageEmptyV2(data) {
  return request({
    url: '/system/message/messageEmptyV2',
    method: 'post',
    data: data
  })
}

export function ruleBatchApproval(data) {
  return request({
    url: '/system/approval/batchApproval',
    method: 'post',
    data: data
  })
}
export function editApproval(data) {
  return request({
    url: '/system/approval/editApproval',
    method: 'post',
    data: data
  })
}
